#!/bin/sh 
if [ $# -lt 2 ];
then
    echo "usage: mapTermToId src_file dst_file";
    exit
fi

srcFile=$1
dstFile=$2

awk '
BEGIN {
    OFS="\t"
}
{
    #select and map the ratings
    if(length($1))print $1, NR;
}' $srcFile > $dstFile
